<?php $this->widget('application.components.UniForm'); ?>
<?php echo CUFHtml::beginForm(); ?>

<?php echo CUFHtml::errorSummary($authitem); ?>

<?php echo CUFHtml::openTag('fieldset', array('class'=>'inlineLabels')); ?>
<?php echo CUFHtml::openActiveCtrlHolder($authitem,'name'); ?>
<?php echo CUFHtml::activeLabelEx($authitem,'name'); ?>
<?php echo CUFHtml::activeTextField($authitem, 'name', array('maxlength'=>64)); ?>
<?php echo CUFHtml::closeCtrlHolder(); ?>

<?php echo CUFHtml::openActiveCtrlHolder($authitem,'type'); ?>
<?php echo CUFHtml::activeLabelEx($authitem,'type'); ?>
<?php echo CUFHtml::activeDropDownList($authitem, 'type', AuthItem::model()->typeOptions); ?>
<?php echo CUFHtml::closeCtrlHolder(); ?>

<?php echo CUFHtml::openActiveCtrlHolder($authitem,'description'); ?>
<?php echo CUFHtml::activeLabelEx($authitem,'description'); ?>
<?php echo CUFHtml::activeTextArea($authitem,'description',array('rows'=>3, 'cols'=>50)); ?>
<?php echo CUFHtml::closeCtrlHolder(); ?>

<?php echo CUFHtml::openActiveCtrlHolder($authitem,'bizrule'); ?>
<?php echo CUFHtml::activeLabelEx($authitem,'bizrule'); ?>
<?php echo CUFHtml::activeTextArea($authitem,'bizrule',array('rows'=>3, 'cols'=>50)); ?>
<?php echo CUFHtml::closeCtrlHolder(); ?>

<?php echo CUFHtml::openActiveCtrlHolder($authitem,'data'); ?>
<?php echo CUFHtml::activeLabelEx($authitem,'data'); ?>
<?php echo CUFHtml::activeTextArea($authitem,'data',array('rows'=>2, 'cols'=>50)); ?>
<?php echo CUFHtml::closeCtrlHolder(); ?>

<?php echo CUFHtml::closeTag('fieldset'); ?>
<div class="buttonHolder">
<?php echo CUFHtml::resetButton(Yii::t('general', 'Reset')); ?>
<?php echo CUFHtml::submitButton($update ? Yii::t('general', 'Save') : Yii::t('general', 'Create')); ?>
</div>

<?php echo CUFHtml::endForm(); ?>